using System;
using System.Collections.Generic;
using Kogel.Dapper.Extension.Attributes;

namespace Sxb.CustomerService
{
	/// <summary> 
	///  
	/// </summary> 
	[Serializable]
	[Display(Rename = "OrderRefunds")]
	public partial class OrderRefunds
	{
		/// <summary> 
		/// </summary> 
		public Guid Id { get; set; }

		/// <summary> 
		/// 订单id 
		/// </summary> 
		public Guid OrderId { get; set; }

		/// <summary> 
		/// </summary> 
		public Guid? OrderDetailId { get; set; }

		/// <summary> 
		/// 商品id 
		/// </summary> 
		public Guid? ProductId { get; set; }

		/// <summary> 
		/// 退货单号 
		/// </summary> 
		public string Code { get; set; }

		/// <summary> 
		/// 数量 
		/// </summary> 
		public short Count { get; set; }

		/// <summary> 
		/// 1.退款  2.退货 3.极速退款  4.后台退款 
		/// </summary> 
		public byte Type { get; set; }

		/// <summary> 
		/// 退款/换货状态   
		/// 1. 提交申请  2.平台审核(发货) 3.平台审核(未发货)   4.平台退款  5.退款成功  6.审核失败 
		/// 11.提交申请   12.平台审核   13.审核失败   14.寄回商品  15平台收货  16.验货失败   17.退款成功 
		/// 20.(用户主动)取消申请 21,因过期而取消申请 
		/// </summary> 
		public byte Status { get; set; }

		/// <summary> 
		/// 上一个状态 
		/// </summary> 
		public byte PreStatus { get; set; }

		/// <summary> 
		/// 退款金额 
		/// </summary> 
		public decimal Price { get; set; }

		/// <summary> 
		/// 退换原因 
		/// </summary> 
		public string Reason { get; set; }

		/// <summary> 
		/// 上传凭证（图片） 
		/// </summary> 
		public string Voucher { get; set; }

		/// <summary> 
		/// 上传凭证（图片）缩略图 
		/// </summary> 
		[Display("Voucher_s")] 
		public string VoucherS { get; set; }

		/// <summary> 
		/// 退款理由选择： 
		/// 1.不想要了、2.商品信息拍错（属性/颜色等）、3.地址/电话信息填写错误、4.拍多了、5.协商一致退款、6.缺货、7.发货速度不满意、8.其他。 
		/// 11颜色/尺寸/参数不符、12商品瑕疵、13质量问题、14少件/漏发、15其他。 
		/// </summary> 
		public byte Cause { get; set; }

		/// <summary> 
		/// 退款中是否包含物流运费 
		/// </summary> 
		public bool? IsContainFreight { get; set; }

		/// <summary> 
		/// 寄回快递类型 
		/// </summary> 
		public string SendBackExpressType { get; set; }

		/// <summary> 
		/// 寄回快递单号 
		/// </summary> 
		public string SendBackExpressCode { get; set; }

		/// <summary> 
		/// 寄回时间 
		/// </summary> 
		public DateTime? SendBackTime { get; set; }

		/// <summary> 
		/// 寄回地址 
		/// </summary> 
		public string SendBackAddress { get; set; }

		/// <summary> 
		/// 寄回电话 
		/// </summary> 
		public string SendBackMobile { get; set; }

		/// <summary> 
		/// </summary> 
		public string SendBackUserName { get; set; }

		/// <summary> 
		/// 退款/退货-审核员 
		/// </summary> 
		public Guid? StepOneAuditor { get; set; }

		/// <summary> 
		/// 退款/退货-审核备注 
		/// </summary> 
		public string StepOneAuditRecord { get; set; }

		/// <summary> 
		/// 退款/退货-审核时间 
		/// </summary> 
		public DateTime? StepOneTime { get; set; }

		/// <summary> 
		/// 收到用户寄回-审核员 
		/// </summary> 
		public Guid? StepTwoAuditor { get; set; }

		/// <summary> 
		/// 收到用户寄回-审核备注 
		/// </summary> 
		public string StepTwoAuditRecord { get; set; }

		/// <summary> 
		/// 收到用户寄回-审核时间 
		/// </summary> 
		public DateTime? StepTwoTime { get; set; }

		/// <summary> 
		/// </summary> 
		public DateTime? CreateTime { get; set; }

		/// <summary> 
		/// </summary> 
		public Guid? Creator { get; set; }

		/// <summary> 
		/// </summary> 
		public DateTime? ModifyDateTime { get; set; }

		/// <summary> 
		/// </summary> 
		public Guid? Modifier { get; set; }

		/// <summary> 
		/// 1=有效，0=已删除 
		/// </summary> 
		public bool IsValid { get; set; }

		/// <summary> 
		/// 退款时间 
		/// </summary> 
		public DateTime? RefundTime { get; set; }

		/// <summary> 
		/// 退款用户 
		/// </summary> 
		public Guid? RefundUserId { get; set; }


	}
}